<template>
  <div id="app">
    <div id="nav">
      <!-- <router-link to="/" active-class="active">home</router-link>&nbsp;&nbsp; -->
      <router-link to="/element" active-class="active">element-ui布局</router-link>&nbsp;&nbsp;
      <router-link to="/axiosview" active-class="active">axios数据请求</router-link>&nbsp;&nbsp;
      <router-link to="/mobileview" active-class="active">移动商城</router-link>&nbsp;&nbsp;
      <!-- <router-link to="/about" active-class="active">about</router-link>&nbsp;&nbsp; -->
    </div>
    <router-view />
  </div>
</template>

<script>
export default {
  name: "app",
  data() {
    return {
      msg: "",
      categoryRelationList: [],
    };
  },
  created: function () {
    this.$router.push("/element");
  },
};
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
